﻿<div class="span3">
	<div class="box1">
		<form class="search_top_form" action="<?php echo site_url('search/index');?>" method="post">
			 <input type="text" id="keyword" name="keyword" value="" placeholder="Keyword...">
			  <select data-placeholder="In All Ads" id="searchCatg" name="searchCatg" data-rel="chosen">
										<option value="">All Ads</option>
										<optgroup label="BUY AND SELL">
											<?php
											foreach ($catg as $key => $value) {
												echo '<option value="1_' . $key . '"';
												echo '>';
												echo $value;
												echo '</option>';
											}
											?>
										</optgroup>
										<optgroup label="PROPERTY">
											<?php
											foreach ($propcatg as $key => $value) {
												echo '<option value="2_' . $key . '"';
												echo '>';
												echo $value;
												echo '</option>';
											}
											?>
										</optgroup>
										<optgroup label="CAR AND VEHICLES">
											<?php
											foreach ($vehcatg as $key => $value) {
												echo '<option value="3_' . $key . '"';
												echo '>';
												echo $value;
												echo '</option>';
											}
											?>
										</optgroup>
								  </select>
								 <br><br>
			  <button class="btn btn-warning"><i class="icon-search icon-white"></i> Search Now</button>
			  <p><span class="error">hot search:  </span>
			  	<?php foreach ($hotsearches as $hotsearch): ?> 
			  		<a href="<?php echo base_url('/classifieds/browse/' . $hotsearch->id); ?>"><?php echo $hotsearch->cat_descriptions; ?> </a>| 
			    <?php endforeach ?>
			  </p> 
		</form>
	</div>
	<div class="box3">
       <img src="http://www.wpthemegenerator.com/wp-content/uploads/2012/06/Image.jpg">
        <p>
         Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam luctus consectetur dolor a porttitor. Curabitur id sem sed ante fringilla pulvinar et id lectus. Nullam justo ipsum, hendrerit ut commodo nec, pellentesque nec erat. Pellentesque pharetra.
       </p> 
       <br />
       <a href="http://www.designshock.com/"> DesignShock.com </a>
	</div>			
    <h3 class="title nmb">Sponsored Ads</h3>
    <div id="myCarousel" class="carousel slide home">
        <div class="carousel-inner">
            <div class="item active">
                <img alt="" src="<?php echo(base_url("assets/img/products/sitemgr_photo_360.jpg")); ?>" />
                <div class="carousel-caption">									
                    <h4>Save 30%</h4>
                    <p>Lorem Ipsum is simply dummy text of the printing.</p>
                </div>
            </div>
            <div class="item">
                <img alt="" src="<?php echo(base_url("assets/img/products/sitemgr_photo_2627.jpg")); ?>" />
                <div class="carousel-caption">
                    <h4>Save 12%</h4>
                    <p>Sed ut perspiciatis unde omnis iste.</p>
                </div>
            </div>
        </div>
        <a class="left carousel-control" href="#myCarousel" data-slide="prev">‹</a>
		<a class="right carousel-control" href="#myCarousel" data-slide="next">›</a>
    </div>
	<h3 class="title nmb">Advertisements</h3>
	<div class="row-fluid">
		<div class="span6 well-small adv">
			<a href="#">
			<img src="<?php echo site_url('/assets/uploads/dummy.png'); ?>" alt=""></a>
		</div>
		<div class="span6 well-small"><a href="#">
			<img src="<?php echo site_url('/assets/uploads/dummy.png'); ?>" alt=""></a></div>
	</div>
	<div class="row-fluid">
		<div class="span12 well">
			<a href="#">
			<img src="<?php echo site_url('/assets/uploads/dummy.png'); ?>" alt="<?php echo $commercials[0]->image_url; ?>"></a>
		</div>
	</div>
    <h3 class="title nmb">Newsletter</h3>
    <div class="newsletter center well well-small text-center">
	<p>Subscribe to our monthly Newsletter and stay tuned.</p>
		<form id="newsletterfrm">
			<div class="input-prepend"><span class="add-on"><i class="icon-envelope"></i></span>
				<input type="hidden" id="suburl" value="<?php echo base_url('subscribe/add'); ?>">
				<input type="text" id="subscriptionEmail" name="" placeholder="your@email.com">
			</div>
			<br />
			<a id="subscription" class="btn  btn-primary btn-large" >Subscribe Now! </a>
		</form>
	</div>

</div>
